package top.likeyoudo.introduction.inheritance

/**
 *@author LikeYouDo
 *@date 2024/12/10 15:20
 */
open class Tiger(val origin: String) {
    fun sayHello() {
        println("A tiger from $origin says: grrhhh!")
    }
}

class SiberianTiger : Tiger("Siberia")                  // 1

fun main() {
    val tiger: Tiger = SiberianTiger()
    tiger.sayHello()
}